# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2022年01月03日
"""
import requests
from lxml import etree

url = "https://shanghai.zbj.com/search/f/?kw=saas"
resp = requests.get(url)
# print(resp.text)

html = etree.HTML(resp.text)
divs=html.xpath('// *[ @ id = "utopia_widget_76"]')
for div in divs:
	price = div.xpath(' ./ a[2] / div[2] / div[1] / span[1]/text()')[0].strip('¥')
	title = 'saas'.join(div.xpath('./a[2]/div[2]/div[2]/p/text()'))
	com_name = div.xpath('./a[1]/div[1]/p/text()')[1].strip()
	address = div.xpath('./a[1]/div[1]/div/span/text()')[0]
	print(title)